import React, { Component } from 'react'
import {HashRouter, Route, Switch} from 'react-router-dom'
import {Provider} from 'react-redux'

import Login from './containers/login/Login'
import Register from './containers/register/Register'
import Main from './containers/main/Main'
import store from './redux/store'

export default class App extends Component {
    render() {
        return (
            <Provider store={store}> 
                <HashRouter>
                    <Switch>
                        <Route path='/register' component={Register}></Route>
                        <Route path='/login' component={Login}></Route>
                        <Route component={Main}></Route>   
                    </Switch>
                </HashRouter>
            </Provider>
        )
    }
}
